package com.douwong.student.contant;

/**
 * @author Tab.lv
 * @category 应用配置信息：例如URL、端口号、组播地址、分辨率尺寸等信息
 */
public class CommonConfig {

	public static final int REQUESTOK = 3000;
	public static final int REQUESTEXCEPTION = 2000;

	private final static int RETRY_TIME = 0; // 不重新连接
	private final static int TIMEOUT_CONNECTION = 8000;
	private final static int TIMEOUT_SOCKET = 15000;
	public static final String UTF_8 = "UTF-8";
	/**
	 * TCP包头
	 */
	public static final String TCP1_DEFAULT_HEAD = "0000000000";

	/**
	 * 画面同步
	 */
	public static String UDP_BROADCAST_IP = "";
	public static int UDP_BROADCAST_PORT = 0;
	public static int UDP_BROADCAST_SIZE = 1024 * 25;
	public static int UDP_BROADCAST_HEADSIZE = 12;
	public static int UDP_BROADCAST_BODYSIZE = UDP_BROADCAST_SIZE - UDP_BROADCAST_HEADSIZE;

	/**
	 * TCP1 心跳包时间
	 */
	public static final int TCP1_HEART_SECOND = 5;
	public static final int PART_SIZE = 10 * 1024;
	public static String LOGIN_CLASS_SUCCESS = "LOGIN_CLASS_SUCCESS";// 加入课堂成功
	public static String LOGIN_CLASS_FAIL = "LOGIN_CLASS_FAIL";// 加入课堂失败
	public static String HAND_WRITTEN_EXCHANGE = "HAND_WRITTEN_EXCHANGE";// 更新手写互动进度
	public static String CLOSE_HAND_WRITTEN_EXCHANGE = "CLOSE_HAND_WRITTEN_EXCHANGE";// 关闭手写互动
	public static String RESEND_HAND_WRITTEN_EXCHANGE = "RESEND_HAND_WRITTEN_EXCHANGE";// 老师要求重新提交互动图片
	public static String GET_HAND_WRITTEN_EXCHANGE = "GET_HAND_WRITTEN_EXCHANGE";// 开始下载互动图片
	public static String CANCEL_HAND_WRITTEN_FILE = "CANCEL_HAND_WRITTEN_FILE";// 老师取消发送图片
	public static String EDIT_HAND_WRITTEN = "EDIT_HAND_WRITTEN";// 老师 允许编辑手写互动
	public static String UNEDIT_HAND_WRITTEN = "UNEDIT_HAND_WRITTEN";// 老师
																		// 允许编辑手写互动
	public static String GET_HAND_WRITTEN_REWARD = "GET_HAND_WRITTEN_REWARD";// 得到手写互动奖励
	public static String TEACHER_ONLINE = "TEACHER_ONLINE";// 请求老师是否在线
	public static String BEGIN_LOAD_RESOURCE = "BEGIN_LOAD_RESOURCE";// 开始下载资源
	public static String RESOURCE_UPDATE = "RESOURCE_UPDATE";// 更新下载进度
	public static String RESOURCE_LOAD_ADD = "RESOURCE_LOAD_ADD";// 正在下载数量加1
	public static String RESOURCE_LOAD_REDUCE = "RESOURCE_LOAD_REDUCE";// 正在下载数量减1
	public static String GET_RESOURCE_LOAD = "GET_RESOURCE_LOAD";// 有资源下载
	public static String STOP_LOAD_RESOURCE = "STOP_LOAD_RESOURCE";// 暂停下载资源
	public static String CONTINUE_LOAD_RESOURCE = "CONTINUE_LOAD_RESOURCE";// 继续下载资源
	public static String CLOSE_RESOURCE_LOAD = "CLOSE_RESOURCE_LOAD";// 关闭下载线程
	public static String CHANGE_RESOURCE_STATE = "CHANGE_RESOURCE_STATE";// 改变资源列表状态
	public static String RESOURCE_LOAD_COMPLETED = "RESOURCE_LOAD_COMPLETED";// 资源下载完成
	public static String RESOURCE_LOAD_COUNT = "RESOURCE_LOAD_COUNT";// 正下载的
	public static String RESOURCE_COMPLETED_ADD = "RESOURCE_COMPLETED_ADD";// 资源完成增加
	public static String PREPARE_DETAIL = "PREPARE_DETAIL";
	public static String STOP_EXAM = "STOP_EXAM";// 结束考试
	public static String START_EXAM = "START_EXAM";// 开始考试
	public static String START_COMMIT_TEST = "START_COMMIT_TEST";// 老师收卷
	public static String START_ANSWER_EXCHANGE = "START_ANSWER_EXCHANGE";// 开始问答互动
	public static String GET_ANSWERT_FILE = "GET_ANSWERT_FILE";// 得到问答互动附件
	public static String FINISH_ANSWERT_FILE = "FINISH_ANSWERT_FILE";// 得到问答互动附件
	public static String STU_CAMERA_UPLOAD = "STU_CAMERA_UPLOAD";// 学生拍照上传

	public static String TEXT_MESSAGE = "TEXT_MESSAGE";// 文本消息
	public static String APPUNREGISTER_MSG = "APPUNREGISTER_MSG";// 用户注销登录
	public static String APPRELOGIN_MSG = "APPRELOGIN_MSG";// 用户重新登录
	public static String APPLOGIN_OK = "APPLOGIN_OK";// 登录成功
	public static String CURRENTWINDOW_CLOSE = "CURRENTWINDOW_CLOSE";// 关闭当前窗口
	public static String SYNSCREEN_OPEN = "SYNSCREEN_OPEN";// 开始屏幕同步
	public final static String SYNSCREEN_CLOSE = "SYNSCREEN_CLOSE";// 结束屏幕同步
	public static String CONNECTION_CLOSE = "CONNECTION_CLOSE";// 与教师的连接断开(暂时没用)

	public static String HIDE_STATUSBAR = "com.eclassedu.hidestatusbar";// 隐藏状态栏
	public static String SHOW_STATUSBAR = "com.eclassedu.showstatusbar";// 显示状态栏
	public static String DISABLE_HOME = "com.eclassedu.disablehomebtn";// 禁用HOME按钮的响应
	public static String ENADBLE_HOME = "com.eclassedu.enablehomebtn";// 启用HOME按钮的响应
	public static String DISABLE_RECENT = "com.eclassedu.disablerecentbtn";//禁用RECENT按键的响应
	public static String ENADBLE_RECENT = "com.eclassedu.enablerecentbtn";//启用RECENT按键的响应
	public static String HOMEPAGE_ENABLESCROLL = "HOMEPAGE_ALLOWSCROLL";// 允许主页左右滑动
	public static String HOMEPAGE_DISABLESCROOL = "HOMEPAGE_DISABLESCROOL";// 禁止主页滑动
	public static String SCREENSERVIVE_START = "com.eclassedu.screenservice";
	public static final String ENABLE_INSTALL="com.eclassedu.enableinstall";
	public static final String DISABLE_INSTALL="com.eclassedu.disableinstall";
	public static final String HIDE_RESET="com.eclassedu.hideresetbak";
	public static final String SHOW_RESET="com.eclassedu.showresetbak";
	public static final String MSG_APPWATCH="com.eclassedu.appwatch";

	public static String DATADECODE_ERRO = "DATADECODE_ERRO";
	public static String TCP_CONNECTERRO = "TCP_CONNECTERRO";
	public static String EBOOKRESOURCE_ONE = "air.WZD.GJW";
	public static String EBOOKRESOURCE_TWO = "air.WZD.LWJY";
	public static String UPDATE_FILE_PRO = "UPDATE_FILE_PRO";// 课堂互动 更新文件进度
	public static String GET_AREA_INFOR = "GET_AREA_INFOR";// 得到区域信息
	public static String GET_ADDRESS = "GET_ADDRESS";
	public static String ADD_APP = "ADD_APP";// 添加应用
	public static String CLASS_RECONNECT = "CLASS_RECONNECT";
	public static String LOGIN_SUCCESS = "LOGIN_SUCCESS";
	public static String TCP_UNCONNECT = "TCP_UNCONNECT";
	public static String CLASSFILE_SEARCH = "CLASSFILE_SEARCH";
	public static final String CLASS_RECORD_SERACH = "class_record_serach";
	public final static String TEST_SEARCH = "TEST_SEARCH";
	public static String PREPARE_SEARCH = "PREPARE_SEARCH";
	public static String TEST_RESULT = "TEST_RESULT";
	public static String STAR_ADD = "START_ADD";
	public static String TIME_CONTROL="TIME_CONTROL";
	public static String NEW_FILE_TCP="NEW_FILE_TCP";
	public static String RESEND_FILE="RESEND_FILE";
	public static String END_DISCUSS="END_DISCUSS";
	public static String GET_LEADER="GET_LEADER";
	public static String GET_GROUPIMG="GET_GROUPIMG";
	public static String FINISH_GROUPIMG="FINISH_GROUPIMG";
	public static String GROUP_FILE_UPLOAD="GROUP_FILE_UPLOAD";
	public static String GROUP_FLOWET="GROUP_FLOWET";
	public static String END_UPLOAD="END_UPLOAD";
	public static String GET_ONLINE_APP="GET_ONLINE_APP";
	public static String GET_ONLINE_RES="GET_ONLINE_RES";
	public static String START_DISCUSS="START_DISCUSS";
	public static String ANSWER_EXCHANGE="ANSWER_EXCHANGE";
	public static String SAVEOBJECT_LOCAL_DEDAULTNAME="localuser.obj";
	public static String APP_INFOS="appinfo.ini";
	public static String APP_UPDATE="APP_UPDATE";
	/**
	 * 屏幕监控配置
	 */
	public static float SCREENSIZE_W = 800;
	public static float SCREENSIZE_H = 600;
	public static int BROADCAST_PORT = 28866;
	
	/**
	 * 图片根据设备宽高等比例压缩的系数
	 */
	public static float ReciveImgZoomProportion=1f;
	/**
	 * ANDROID学生平板ID，与平台字典表里对应
	 */
    public static final String PlatformID="131";
    
    /**
	 * 终端类型，与平台字典表里对应
	 */
    public static final String DeviceType="737";
	
	/**
	 * 缩略图
	 */
	public static int DEVICEPIC_W = 40;
	public static int DEVICEPIC_H = 35;

	public static String ssoid = "";

}
